﻿
Partial Class Default2
    Inherits System.Web.UI.Page
    Dim ocnAlumno As New Negocio.Alumno()

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.GridView1.DataSource = ocnAlumno.BuscarAlumno(Me.TextBox1.Text)
        Me.GridView1.DataBind()

    End Sub

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
        ocnAlumno.ModificarAlumno(Me.TextBox2.Text, Me.TextBox1.Text, Me.TextBox4.Text, Me.TextBox5.Text, Me.TextBox6.Text, Me.TextBox7.Text)
        Me.GridView1.DataSource = ocnAlumno.BuscarAlumno(Me.TextBox1.Text)
        Me.GridView1.DataBind()
    End Sub
End Class
